/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Display
import com.vaadin.data.Property.ValueChangeListener
import com.vaadin.data.Property.ValueChangeEvent

/**
 * Field value changed (and committed)
 * @author patrick
 */
class SearchChangedListener implements ValueChangeListener {

    SearchBean searchData
    
    void valueChange(ValueChangeEvent event) {
        System.out.println("captured")
        searchData.time = 500
        System.out.println(searchData.time)
    }
}

/**
 * Key-capture
 */
class SubmissionListener implements ValueChangeListener {
    void valueChange(ValueChangeEvent event) {
        System.out.println("captured")
    }
}

